/**
 * 
 */
package org.cuatrovientos.imc;

import java.util.Scanner;

/**
 * @author segoitz_guibert
 *
 */
public class IMC {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		
		double NumWeight=0f;
		double NumHeight=0f;
		double NumResult=0f;
		double IMC=0f;
		String Weight = ""; 
		String Height ="";
		
		Scanner reader= new Scanner(System.in);
		
		System.out.println("Please enter your weight in kilograms: ");
		Weight = reader.nextLine();
		NumWeight = Integer.parseInt(Weight);
		
		System.out.println("Please your height in meters: ");
		Height = reader.nextLine();
		NumHeight = Double.parseDouble(Height);
		
		IMC = (NumWeight/(NumHeight*NumHeight));
		
		if(IMC<16){
			System.out.println("You have to eat more");
		}else{
			if(IMC>=16 & IMC<25){
				System.out.println("You are OK");
			}else{
				if(IMC>=25 & IMC<30){
					System.out.println("You have to care more about yourself");
				}else{
					System.out.println("Go to the hospital");
				}
			}
		}
	}
}

				
		
			
		
	